package com.cloud.controller;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.cloud.entity.CommonResult;
import com.cloud.entity.Payment;


/**
 * 自定义sentinel类
 */
public class SentinelHandler {

    public static String sentinelExceptionHandlerForVersion(BlockException e){
        return "版本号响应失败";
    }

    public static  CommonResult<Payment> sentinelExceptionHandlerForGetOrder(String id, BlockException e){
        return new CommonResult(201,"订单响应失败");
    }
}
